<?php

declare(strict_types = 1);

namespace IMOcean\Closure;

/**
 * Class ClosureUtils
 * @package IMOcean\Closure
 */
trait ClosureUtils
{
    /**
     * Run a closure.
     *
     * @param Closure $closure
     * @return mixed
     */
    public static function execute(Closure $closure): mixed
    {
        return $closure->execute();
    }
}